package club.pchome.common.constant;

/**
 * 系统级静态变量
 * 创建者 科帮网 
 * 创建时间	2017年11月20日
 */
public class SystemConstant {
	
	/**登录相关**/
	public static final int RESCODE_LOGIN = 1001;		//账号或密码错误
	
    /**
	 * token
	 */
	public static final int RESCODE_REFTOKEN_MSG = 1006;		//刷新TOKEN(有返回数据)
	public static final int RESCODE_REFTOKEN = 1007;			//刷新TOKEN
	
	public static final int JWT_ERRCODE_NULL = 4000;			//Token不存在
	public static final int JWT_ERRCODE_EXPIRE = 4001;			//Token过期
	public static final int JWT_ERRCODE_FAIL = 4002;			//验证不通过

	
	public static final String LOGIN_USER_KEY = "userInfo";		//用户信息字段
	
	/**
	 * JWT
	 */
	public static final String JWT_SECERT = "58af5329db4999839507175b4ca7c3aa";		//密匙
	public static final long JWT_TTL = 60 * 60 * 1000;			//token有效时间
	
	
	/******************ADM接口更新*******************************
	 * OLD : https://112.74.62.231/member-api/api
	 * NEW : https://adm.leange.cn/member-api/api
	 * BACK: https://adm.folad.cn/member-api/api	✔
	 ***********************************************/
	public static String BASEURL = "https://adm.leange.cn/member-api/api";
//	public static String BASEURL = "https://adm.folad.cn/member-api/api";

	/**不知道干嘛用的，这里用来做cookie是否过期的验证**/	
	public static String isOpenDirect = BASEURL +"/user/isOpenDirect";
	
	/**登录**/	
	public static String ADMLOGIN = BASEURL +"/login";
	/**用户签到状态**/
	public static String SIGN_STATUS = BASEURL+"/user/checkSignStatus";
	/**签到**/
	public static String OPEN_SIGN = BASEURL+"/user/checkInProcess";
	/**用户数据*/
	public static String ACCOUNT_DATA = BASEURL+"/user/getCapitalList";
	/**查看待处理交易*/
	public static String WaitTaskCount = BASEURL+"/mem/myTrans/getWaitTaskCount";
	/**查看待处理交易详情*/
	public static String WaitTaskCountDetail = BASEURL+"/mem/myTrans/getWaitTaskCountDetail";
	/**挂单查询*/
	public static String hangList = BASEURL+"/mem/myTrans/hangList";
	/**系统买单列表*/
	public static String buyInList = BASEURL+"/mem/trans/buyInList";
	/**买ADM*/
	public static String buy = BASEURL+"/mem/myTrans/buy";
	/**挂单*/
	public static String sale = BASEURL+"/mem/myTrans/sale";
	/**撤单*/
	public static String revoke = BASEURL+"/mem/myTrans/revoke";
	/**放行*/
	public static String audit = BASEURL+"/mem/myTrans/audit";
	/**钱包兑换*/
	public static String exchangeCapital = BASEURL+"/user/exchangeCapital";
	
	/**卖单记录*/
	public static String sellList = BASEURL+"/mem/myTrans/sellList";
	/**待处理卖单列表**/
	public static String sellTaskList = BASEURL+"/mem/myTrans/sellTaskList";
	/**获取当前购买多少币**/
	public static String getNextLevelInfo = BASEURL+"/mem/group/getNextLevelInfo";
	
	/**农场动物列表
	 * true : {"code":"200","errorCode":"SUCCESS","msg":"ok","data":{"pageNo":1,"nextPage":false,"list":[{"animalId":1001,"animalCode":"CJMJ","animalName":"超级母鸡","animalCycle":43200.000000,"foragePrice":0.000000,"feedTime":720.000000,"unitTime":14.400000,"animalPrice":30.000000,"produceAmount":50,"feedCount":60,"animalType":1,"isEffect":1,"isDel":0,"createTime":1560334628000,"modifyTime":1560334626000}],"totalCount":1,"pageSize":10,"totalPage":1}}
	 * false: {"code":"10008","errorCode":"USER_HAVE_NOT_ANIMAL","msg":"您还没有动物，快去领养一只吧！"}
	 * */
	public static String userAnimalList = BASEURL+"/mem/farm/userAnimalList";
	/**喂养动物
	 * true : {"code":"200","errorCode":"SUCCESS","msg":"ok"}
	 * false: {"code":"10014","errorCode":"FORAGE_LESS_MORE","msg":"饲料还未吃完，请稍后再试！"}
	 **/
	public static String feedAnimal = BASEURL+"/mem/farm/feedAnimal";
	/**喂养前先收取鸡蛋
	 * true : {"code":"200","errorCode":"SUCCESS","msg":"ok","data":{"eggAmount":1}}
	 * false: {"code":"10004","errorCode":"ANIMAL_CAN_NOT_FEED","msg":"蛋还未产出，请您稍后再试。"}
	 * **/
	public static String receiveEgg = BASEURL+"/mem/farm/receiveEgg";
}
